﻿namespace Socket.Core.Error
{
    using System;

    public class ServerException : ApplicationException
    {
        private readonly ServerExceptionType exceptionType;
        private string message;

        public ServerException(ServerExceptionType t)
        {
            this.exceptionType = t;
        }

        public ServerException(ServerExceptionType t, string message) : base(message)
        {
            this.exceptionType = t;
            this.message = message;
        }

        public ServerExceptionType ExceptionType
        {
            get
            {
                return this.exceptionType;
            }
        }
    }
}

